FROM centos:7.5.1804

MAINTAINER maoxiaodong

RUN set -x \
    && yum update -y \
    && yum install -y java-11-openjdk java-11-openjdk-devel wget iputils nc  vim libcurl

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p /fresh-simple-biz

WORKDIR /fresh-simple-biz

EXPOSE 8005 28005

ADD ./modules/fresh-simple/fresh-simple-biz/build/libs/fresh-simple-biz-1.0.SNAPSHOT.jar ./

CMD sleep 120;java -Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom -jar fresh-simple-biz-1.0.SNAPSHOT.jar
